<?php
// Hack prevention.
if (!empty($_REQUEST["GALLERY_BASEDIR"])) {
            print "Security violation\n";
	            exit;
		    }
?>
<?php require($GALLERY_BASEDIR . "errors/configure_instructions.php") ?>
<html>
<head>
  <title>Gallery in Configuration Mode</title>
  <?php echo getStyleSheetLink() ?>
</head>
<body>	
<center>
<span class="title"> Gallery: Configuration Mode </span>
<p>
<table width=80%><tr><td>
<br>
<center>
To configure gallery, 
<font size=+1>
<a href="<?php echo $GALLERY_BASEDIR?>setup/index.php">Start the configuration wizard</a>
</font>
</center>
<br>

If you've finished your configuration but you're still seeing this
page, that's because for safety's sake we don't let you run Gallery in
an insecure mode.  You need to switch to secure mode before you can
use it.  Here's how:

<p><center>
<?php echo configure("secure"); ?>
<p>
Then just reload this page and all should be well.  

<?php include($GALLERY_BASEDIR . "errors/configure_help.php"); ?>

</table>
</body>
</html>
